package com.simple.datax.db.mybatis.model;

import java.io.Serializable;
import java.util.Date;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 
 * @author paladin
 * 
 */
public class DataxSendRawMsg implements Serializable {
	private Long id;

	private String messageid;

	private String sendFileName;

	private String sendDataType;

	private String msgType;

	private Short msgSubType;

	private String msgBusiType;

	private String receiverid;

	private Date backupTime;

	private Long dataSize;

	private Short status;

	private String fcSenderId;

	private String recvRawMsgid;

	private byte[] msgData;

	private static final long serialVersionUID = 1L;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getMessageid() {
		return messageid;
	}

	public void setMessageid(String messageid) {
		this.messageid = messageid == null ? null : messageid.trim();
	}

	public String getSendFileName() {
		return sendFileName;
	}

	public void setSendFileName(String sendFileName) {
		this.sendFileName = sendFileName == null ? null : sendFileName.trim();
	}

	public String getSendDataType() {
		return sendDataType;
	}

	public void setSendDataType(String sendDataType) {
		this.sendDataType = sendDataType == null ? null : sendDataType.trim();
	}

	public String getMsgType() {
		return msgType;
	}

	public void setMsgType(String msgType) {
		this.msgType = msgType == null ? null : msgType.trim();
	}

	public Short getMsgSubType() {
		return msgSubType;
	}

	public void setMsgSubType(Short msgSubType) {
		this.msgSubType = msgSubType;
	}

	public String getMsgBusiType() {
		return msgBusiType;
	}

	public void setMsgBusiType(String msgBusiType) {
		this.msgBusiType = msgBusiType == null ? null : msgBusiType.trim();
	}

	public String getReceiverid() {
		return receiverid;
	}

	public void setReceiverid(String receiverid) {
		this.receiverid = receiverid == null ? null : receiverid.trim();
	}

	public Date getBackupTime() {
		return backupTime;
	}

	public void setBackupTime(Date backupTime) {
		this.backupTime = backupTime;
	}

	public Long getDataSize() {
		return dataSize;
	}

	public void setDataSize(Long dataSize) {
		this.dataSize = dataSize;
	}

	public Short getStatus() {
		return status;
	}

	public void setStatus(Short status) {
		this.status = status;
	}

	public String getFcSenderId() {
		return fcSenderId;
	}

	public void setFcSenderId(String fcSenderId) {
		this.fcSenderId = fcSenderId == null ? null : fcSenderId.trim();
	}

	public String getRecvRawMsgid() {
		return recvRawMsgid;
	}

	public void setRecvRawMsgid(String recvRawMsgid) {
		this.recvRawMsgid = recvRawMsgid == null ? null : recvRawMsgid.trim();
	}

	public byte[] getMsgData() {
		return msgData;
	}

	public void setMsgData(byte[] msgData) {
		this.msgData = msgData;
	}

	@Override
	public boolean equals(Object that) {
		if (this == that) {
			return true;
		}
		if (that == null) {
			return false;
		}
		if (getClass() != that.getClass()) {
			return false;
		}
		DataxSendRawMsg other = (DataxSendRawMsg) that;
		return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
				&& (this.getMessageid() == null ? other.getMessageid() == null : this.getMessageid().equals(
						other.getMessageid()))
				&& (this.getSendFileName() == null ? other.getSendFileName() == null : this.getSendFileName().equals(
						other.getSendFileName()))
				&& (this.getSendDataType() == null ? other.getSendDataType() == null : this.getSendDataType().equals(
						other.getSendDataType()))
				&& (this.getMsgType() == null ? other.getMsgType() == null : this.getMsgType().equals(
						other.getMsgType()))
				&& (this.getMsgSubType() == null ? other.getMsgSubType() == null : this.getMsgSubType().equals(
						other.getMsgSubType()))
				&& (this.getMsgBusiType() == null ? other.getMsgBusiType() == null : this.getMsgBusiType().equals(
						other.getMsgBusiType()))
				&& (this.getReceiverid() == null ? other.getReceiverid() == null : this.getReceiverid().equals(
						other.getReceiverid()))
				&& (this.getBackupTime() == null ? other.getBackupTime() == null : this.getBackupTime().equals(
						other.getBackupTime()))
				&& (this.getDataSize() == null ? other.getDataSize() == null : this.getDataSize().equals(
						other.getDataSize()))
				&& (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
				&& (this.getFcSenderId() == null ? other.getFcSenderId() == null : this.getFcSenderId().equals(
						other.getFcSenderId()))
				&& (this.getRecvRawMsgid() == null ? other.getRecvRawMsgid() == null : this.getRecvRawMsgid().equals(
						other.getRecvRawMsgid()))
				&& (this.getMsgData() == null ? other.getMsgData() == null : this.getMsgData().equals(
						other.getMsgData()));
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
		result = prime * result + ((getMessageid() == null) ? 0 : getMessageid().hashCode());
		result = prime * result + ((getSendFileName() == null) ? 0 : getSendFileName().hashCode());
		result = prime * result + ((getSendDataType() == null) ? 0 : getSendDataType().hashCode());
		result = prime * result + ((getMsgType() == null) ? 0 : getMsgType().hashCode());
		result = prime * result + ((getMsgSubType() == null) ? 0 : getMsgSubType().hashCode());
		result = prime * result + ((getMsgBusiType() == null) ? 0 : getMsgBusiType().hashCode());
		result = prime * result + ((getReceiverid() == null) ? 0 : getReceiverid().hashCode());
		result = prime * result + ((getBackupTime() == null) ? 0 : getBackupTime().hashCode());
		result = prime * result + ((getDataSize() == null) ? 0 : getDataSize().hashCode());
		result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
		result = prime * result + ((getFcSenderId() == null) ? 0 : getFcSenderId().hashCode());
		result = prime * result + ((getRecvRawMsgid() == null) ? 0 : getRecvRawMsgid().hashCode());
		result = prime * result + ((getMsgData() == null) ? 0 : getMsgData().hashCode());
		return result;
	}

	public String toString() {
		return ReflectionToStringBuilder.toString(this, ToStringStyle.SHORT_PREFIX_STYLE);
	}
}